﻿<!DOCTYPE html>
<html lang="zh">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <title>@ViewBag.Title - 仅限暂时进行测试</title>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
@*    <meta name="viewport" content="width=device-width" />*@
    @Styles.Render("~/Content/css")
    @Styles.Render("~/Content/themes/base/css")
@*    @Scripts.Render("~/bundles/modernizr")*@
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/jqueryui")
    <script src="~/Scripts/jquery.unobtrusive-ajax.js" type="text/javascript"></script>
    <link href="~/Content/modern-basic.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/my.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        html, body
        {
            margin: 0px 0px;
            /*width: 100%;*/
            height: 100%;
        }
    </style>
    <script type="text/javascript">
        Date.prototype.toLocaleString = function () { return this.getFullYear() + "年" + this.getMonth() + "月" + this.getDate() + "日" + this.getHours() + "点" + this.getMinutes() + "分" };
        $(function () {
            $("#menu a[href='@(Request.Path.Replace("/Index",""))']").css("border-bottom", "4px solid #fa6800").css("color", "#fa6800");
        });

    </script>

</head>
<body>
    <header>
        <div class="content-wrapper">
            <div class="float-left">
                <p class="site-title" style="white-space: nowrap">@(ThisSession == null ? "<还未加载和准备演练方案>" : ThisSession.ScenariosName) <span id="playstatus"></span></p>
            </div>
            <div class="float-right">
                <section id="login">
                    @Html.Partial("_LoginPartial")
                </section>
                <nav>
                    <ul id="menu">
                        @{
                            var role = GetUserRole();
                            
                        }
                        @if (role == "Manager")
                        {
                            <li>@Html.ActionLink("1、加载演练故事", "LoadSubject", "Manage")</li>
                            <li>@Html.ActionLink("2、评分和演练人员", "GroupAccounts", "Manage")</li>
                            <li>@Html.ActionLink("3、打印花名册", "PrintAccounts", "Manage")</li>
                            <li>@Html.ActionLink("4、管理控制台", "CtrlPanel", "Manage")</li>
                            <li>@Html.ActionLink("5、演练结果", "SessionList", "Manage")</li>
                        }
                        else if (role == "Examiner")
                        {
                            <li>@Html.ActionLink("1、加入演练", "", "Examine")</li>
                            <li>@Html.ActionLink("2、管理控制台", "CtrlPanel", "Examine")</li>
@*<li>@Html.ActionLink("3、演练结果", "Summary", "Examine")</li>*@
                        }
                        else if (role == "Actor")
                        {
                            <li>@Html.ActionLink("1、加入演练", "", "Player")</li>
                            <li>@Html.ActionLink("2、演练操作台", "CtrlPanel", "Player")</li>
@*<li>@Html.ActionLink("3、演练结果", "Summary", "Player")</li>*@
                        }

                    </ul>
                </nav>
            </div>
        </div>
    </header>
    <div id="body">
        @RenderSection("featured", required: false)
        <section class="content-wrapper main-content clear-fix">
            @RenderBody()
        </section>
    </div>
    <footer>
        <div class="content-wrapper">
            <div class="float-right">
                <p>中国地震应急搜救中心 &nbsp;2013</p>
            </div>
        </div>
    </footer>

    @RenderSection("scripts", required: false)

</body>
</html>
